<template>
  <div id="app">
    <router-view />
    <div id="nav">
      <router-link to="/">Home</router-link>
      <router-link to="/about">About</router-link>
      <router-link to="/jd">京东</router-link>
      <router-link to="/supries">惊喜</router-link>
      <router-link to="/zchf">子传父</router-link>
    </div>
  </div>
</template>

<style lang="scss">
#app {
  padding-bottom: 80px;
}
* {
  margin: 0;
  padding: 0;
  list-style: none;
}
#nav {
  position: fixed;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 50px;
  display: flex;
  background: #fff;

  a {
    flex: 1;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    line-height: 50px;

    &.router-link-exact-active {
      color: #42b983;
    }
    // &代表a链接本身
  }
}
</style>
